package com.java2_18;

public class Dog extends Animal{
    public Dog() {
    }

    public Dog(String name, int age) {
        super(name, age);
    }



    //一般用来方法重写
    @Override
    public String toString() {
        return getName() + " " + getAge();
    }

}
